package com.sgb.kjwl.view.ui.adapter.packers;

import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.ShopTeamInfoEntity;
import com.sgb.merchant.BR;

import java.util.List;

/**
 * @author 王彬臣
 * @date 2021/9/7
 * description: 工队业绩Adapter
 */
public class TeamPerformanceAdapter extends BaseQuickAdapter<ShopTeamInfoEntity, BaseViewHolder> {
    public TeamPerformanceAdapter(@Nullable List<ShopTeamInfoEntity> data) {
        super(R.layout.item_team_performance,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ShopTeamInfoEntity item) {
        ViewDataBinding binding = DataBindingUtil.bind(helper.itemView);
        if (binding != null) {
            binding.setVariable(BR.viewModel,item);
        }
    }
}
